package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TourVideoTypeMapper;
import com.ruoyi.system.domain.TourVideoType;
import com.ruoyi.system.service.ITourVideoTypeService;

/**
 * 视频Service业务层处理
 * 
 * @author once
 * @date 2020-10-02
 */
@Service
public class TourVideoTypeServiceImpl implements ITourVideoTypeService 
{
    @Autowired
    private TourVideoTypeMapper tourVideoTypeMapper;

    /**
     * 查询视频
     * 
     * @param videoId 视频ID
     * @return 视频
     */
    @Override
    public TourVideoType selectTourVideoTypeById(Long videoId)
    {
        return tourVideoTypeMapper.selectTourVideoTypeById(videoId);
    }

    /**
     * 查询视频列表
     * 
     * @param tourVideoType 视频
     * @return 视频
     */
    @Override
    public List<TourVideoType> selectTourVideoTypeList(TourVideoType tourVideoType)
    {
        return tourVideoTypeMapper.selectTourVideoTypeList(tourVideoType);
    }

    /**
     * 新增视频
     * 
     * @param tourVideoType 视频
     * @return 结果
     */
    @Override
    public int insertTourVideoType(TourVideoType tourVideoType)
    {
        return tourVideoTypeMapper.insertTourVideoType(tourVideoType);
    }

    /**
     * 修改视频
     * 
     * @param tourVideoType 视频
     * @return 结果
     */
    @Override
    public int updateTourVideoType(TourVideoType tourVideoType)
    {
        return tourVideoTypeMapper.updateTourVideoType(tourVideoType);
    }

    /**
     * 批量删除视频
     * 
     * @param videoIds 需要删除的视频ID
     * @return 结果
     */
    @Override
    public int deleteTourVideoTypeByIds(Long[] videoIds)
    {
        return tourVideoTypeMapper.deleteTourVideoTypeByIds(videoIds);
    }

    /**
     * 删除视频信息
     * 
     * @param videoId 视频ID
     * @return 结果
     */
    @Override
    public int deleteTourVideoTypeById(Long videoId)
    {
        return tourVideoTypeMapper.deleteTourVideoTypeById(videoId);
    }
}
